HDFS Offline Image Viewer (解析fsimage file)

HDFS Offline Image Viewer

The Offiline Image Viewer is a tool to dump the contents of hdfs fsimage files.

command :

  • Web Processor
    Web processer launches a HTTP server :
    1
    bin/hdfs oiv -i fsimage

Users can access the viewer and get information of the fsimage:

1
bin/hdfs dfs -ls webhdfs://127.0.0.1:5978/

  • XML Processor
    XML processer is used to dump all the contents in the fsimage.
    1
    bin/hdfs oiv -p XML -i fsimage -o fsimage.xml